package com.Logistics.truck;

import com.Logistics.dto.TrainNumber.TrainNumberByLineIdAndIdDto;
import com.Logistics.entity.trainNumber.TrainNumberBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "pd-base",path = "/trainNumber")
public interface TrainNumberFeignClient {
    @PostMapping("/getTrainNumberByLineIdAndId")
    public List<TrainNumberBean> getTrainNumberByLineIdAndId(@RequestBody TrainNumberByLineIdAndIdDto dto);

    @GetMapping("/getTrainNumberById/{id}")
    public TrainNumberBean getTrainNumberById(@PathVariable String id);
}
